home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
E-Education
/
(c)ed26.d64
/
the race
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
6KB
|
181 lines
10 POKE53280,0:POKE53281,0:POKE53272,21:P=0
20 PRINT"[147][159] [146]";
22 PRINT" [146]";
24 PRINT" [146]";
26 PRINT" [146]";
28 PRINT" THE RACE [146]";
30 PRINT" [146]";
32 PRINT"[159] [146]";
34 PRINT" [146]":GOSUB392:GOSUB560
36 PRINT"[154] PRESS SPACE BAR [146] TO CONTINUE
38 [161]R$:[139]R$[179][177][199](32)[167]38
50 [137]1000
300 [141]530:[141]394:[153]"DEF TRY AGAIN!":[141]560:[141]391:[142]
350 [153]" CORRECT! WAIT":[141]500
355 [141]392:[153]"LOAD":[141]391:[142]
370 [153]" READ THIS CAREFULLY":[141]560:[141]560:[141]394:[142]
390 [129]T[178]1[164]600:[130]:[142]
391 [129]T[178]1[164]1000:[130]:[142]
392 [129]T[178]1[164]2000:[130]:[142]
393 [129]T[178]1[164]3000:[130]:[142]
394 [129]T[178]1[164]4000:[130]:[142]
395 [129]T[178]1[164]5000:[130]:[142]
500 [143] <YES>
505 S[178]54272:[129]E[178]S[164]S[170]28:[151]E,0:[130]
510 [151]54296,15:[151]54277,42:[151]54278,250
515 [151]54276,23:[151]54273,23:[151]54272,191
520 [129]T[178]1[164]250:[130]:[151]54276,32:[129]T[178]1[164]300:[130]
525 [151]54296,0:[142]
530 [143] <NO>
535 S[178]54272:[129]E[178]S[164]S[170]28:[151]E,0:[130]
540 [151]54296,15:[151]54277,18:[151]54278,242
545 [151]54276,33:[151]54273,4:[151]54272,48
550 [129]T[178]1[164]300:[130]:[151]54276,32:[129]T[178]1[164]400:[130]
555 [151]54296,0:[142]
560 [143] <BLIP>
565 S[178]54272:[129]E[178]S[164]S[170]28:[151]E,0:[130]
570 [151]54296,8:[151]54277,42:[151]54278,250
575 [151]54276,23:[151]54273,23:[151]54272,191
580 [129]T[178]1[164]40:[130]:[151]54276,32:[129]T[178]1[164]50:[130]
585 [151]54296,0:[142]
1000 [153]"OPENLOAD I WANT YOU TO READ A STORY ABOUT A
1010 PRINT" RACE IN THE SCHOOL PLAYGROUND.
1020 [153]" AFTER YOU HAVE READ THE STORY, THERE
1030 PRINT" WILL BE SOME QUESTIONS FOR YOU TO ANSWER.
1040 [153]"CONT PRESS SPACE BAR WHEN YOU ARE READY.":[141]560
1050 [161]R$:[139]R$[179][177][199](32)[167]1050
1055 [141] 1200
1060 [137]2000
1080 [141] 1200
1085 [137]2000
1200 [153]"LOAD THE STORY WAIT"
1210 [153]"OPEN LAST MONDAY, TEN CHILDREN HAD A RACE.
1215 PRINT" THE RACE WAS ON THE SCHOOL PLAYGROUND.
1220 [153]" MR. BOYES STARTED THE RACE. HE TOLD
1225 PRINT" THE CHILDREN TO STAND SIDE BY SIDE.
1230 [153]" "[199](34)"GET READY! ONE! TWO! THREE! GO!"[199](34)" HE"
1235 [153]" SAID.
1240 PRINT" AWAY WENT THE CHILDREN. THEY RAN
1245 [153]" FASTER AND FASTER. OTHER CHILDREN
1250 PRINT" WATCHED THEM RUN AND CHEERED THEM ON."
1255 REM
1260 REM
1265 PRINT" MARTIN FELL DOWN. UMAR'S SHOE FELL OFF.
1270 [153]" MR. BOYES SAID"[199](34)" ROBERTA WINS!"[199](34)
1275 [153]" JEFF CAME IN SECOND WITH BRAD AFTER
1280 PRINT" HIM. TED WAS LAST IN THE RACE.
1285 [141]393:[141]560
1290 [153]"CONT PRESS THE SPACE BAR WAIT FOR THE QUESTIONS
1295 GETR$:IFR$<>CHR$(32)THEN1295
1298 RETURN
2000 PRINT"[159][147] WHO WON THE RACE?[153]":GOSUB560
2010 PRINT" (A) ... JEFF
2020 [153]" (B) ... ROBERTA
2030 PRINT" (C) ... STEVE
2040 [153]" (D) ... PLEASE SHOW ME THE STORY AGAIN
2050 GETR$:IFR$<>"A"ANDR$<>"B"ANDR$<>"C"ANDR$<>"D"THEN2050
2060 IFR$="A"THENPRINT"[150] READ CAREFULLY":GOSUB300:P=P+1:GOTO2000
2070 IFR$="C"THENPRINT"[150] WHO IS HE? ":GOSUB300:P=P+1:GOTO2000
2080 IFR$="D"THENGOSUB370:GOSUB1200:GOTO2000
2090 GOSUB350
2100 PRINT"[159][147] WHO STARTED THE RACE?[153]":GOSUB560
2110 PRINT" (A) ... MRS. GAGNER
2120 [153]" (B) ... MR. BOYD
2130 PRINT" (C) ... MR. BOYES
2140 [153]" (D) ... PLEASE SHOW ME THE STORY AGAIN
2150 GETR$:IFR$<>"A"ANDR$<>"B"ANDR$<>"C"ANDR$<>"D"THEN2150
2160 IFR$="A"THENPRINT"[150] SHE WAS HAVING COFFEE.":GOSUB300:P=P+1:GOTO2100
2170 IFR$="B"THENPRINT"[150] WHO IS HE? ":GOSUB300:P=P+1:GOTO2100
2180 IFR$="D"THENGOSUB370:GOSUB1200:GOTO2100
2190 GOSUB350
2200 PRINT"[159][147] WHO CAME SECOND? [153]":GOSUB560
2210 PRINT" (A) ... JEFF
2220 [153]" (B) ... MARTIN
2230 PRINT" (C) ... UMAR
2240 [153]" (D) ... PLEASE SHOW ME THE STORY AGAIN
2250 GETR$:IFR$<>"A"ANDR$<>"B"ANDR$<>"C"ANDR$<>"D"THEN2250
2260 IFR$="B"THENPRINT"[150] MARTIN TRIPPED AND FELL.":GOSUB300:P=P+1:GOTO2200
2270 IFR$="C"THENPRINT"[150] UMAR LOST HIS SHOE.":GOSUB300:P=P+1:GOTO2200
2280 IFR$="D"THENGOSUB370:GOSUB1200:GOTO2200
2290 GOSUB350
2300 PRINT"[159][147] WHEN WAS THE RACE? [153]":GOSUB560
2310 PRINT" (A) ... LAST MONDAY
2320 [153]" (B) ... LAST NIGHT
2330 PRINT" (C) ... LAST SATURDAY
2340 [153]" (D) ... PLEASE SHOW ME THE STORY AGAIN
2350 GETR$:IFR$<>"A"ANDR$<>"B"ANDR$<>"C"ANDR$<>"D"THEN2350
2360 IFR$="B"THENPRINT"[150] NOPE! ":GOSUB300:P=P+1:GOTO2300
2370 IFR$="C"THENPRINT"[150] WHY SATURDAY? ":GOSUB300:P=P+1:GOTO2300
2380 IFR$="D"THENGOSUB370:GOSUB1200:GOTO2300
2390 GOSUB350
2400 PRINT"[159][147] WHO WATCHED THE RACE? [153]":GOSUB560
2410 PRINT" (A) ... FATHERS
2420 [153]" (B) ... CHILDREN
2430 PRINT" (C) ... MOTHERS
2440 [153]" (D) ... PLEASE SHOW ME THE STORY AGAIN
2450 GETR$:IFR$<>"A"ANDR$<>"B"ANDR$<>"C"ANDR$<>"D"THEN2450
2460 IFR$="A"THENPRINT"[150] FATHERS WERE AT WORK. ":GOSUB300:P=P+1:GOTO2400
2470 IFR$="C"THENPRINT"[150] REALLY? ":GOSUB300:P=P+1:GOTO2400
2480 IFR$="D"THENGOSUB370:GOSUB1200:GOTO2400
2490 GOSUB350
2500 PRINT"[159][147] HOW MANY CHILDREN FINISHED THE RACE?[153]":GOSUB560
2510 PRINT" (A) ... TEN
2520 [153]" (B) ... NINE
2530 PRINT" (C) ... EIGHT
2540 [153]" (D) ... PLEASE SHOW ME THE STORY AGAIN
2550 GETR$:IFR$<>"A"ANDR$<>"B"ANDR$<>"C"ANDR$<>"D"THEN2550
2560 IFR$="A"THENPRINT"[150] WHAT HAPPENED TO MARTIN? ":GOSUB300:P=P+1:GOTO2500
2570 IFR$="B"THENPRINT"[150] WHAT HAPPENED TO UMAR?":GOSUB300:P=P+1:GOTO2500
2580 IFR$="D"THENGOSUB370:GOSUB1200:P=P+1:GOTO2500
2590 GOSUB350
2600 PRINT"[159][147] WHAT HAPPENED TO UMAR? [153]":GOSUB560
2610 PRINT" (A) ... HE FELL
2620 [153]" (B) ... HIS SHOE COME OFF
2630 PRINT" (C) ... HE BLEW HIS NOSE
2640 [153]" (D) ... PLEASE SHOW ME THE STORY AGAIN
2650 GETR$:IFR$<>"A"ANDR$<>"B"ANDR$<>"C"ANDR$<>"D"THEN2650
2660 IFR$="A"THENPRINT"[150] NOT SO! ":GOSUB300:P=P+1:GOTO2600
2670 IFR$="C"THENPRINT"[150] UGH! ":GOSUB300:P=P+1:GOTO2600
2680 IFR$="D"THENGOSUB370:GOSUB1200:GOTO2600
2690 GOSUB350
2700 PRINT"[159][147] WHERE WAS THE RACE HELD?[153]":GOSUB560
2710 PRINT" (A) ... IN THE SCHOOL GYM
2720 [153]" (B) ... IN THE SCHOOL HALL
2730 PRINT" (C) ... IN THE SCHOOL PLAYGROUND"
2740 PRINT" (D) ... PLEASE SHOW ME THE STORY AGAIN
2750 [161]R$:[139]R$[179][177]"A"[175]R$[179][177]"B"[175]R$[179][177]"C"[175]R$[179][177]"D"[167]2750
2760 [139]R$[178]"A"[167][153]"DEF WOW! THAT'S WILD! ":[141]300:P[178]P[170]1:[137]2700
2770 [139]R$[178]"B"[167][153]"DEF NOT LIKELY! ":[141]300:P[178]P[170]1:[137]2700
2780 [139]R$[178]"D"[167][141]370:[141]1200:[137]2700
2790 [141]350
2800 [153]"OPENLOAD WHAT IS THE BEST NAME FOR THIS STORY?PRINT":[141]560
2810 [153]" (A) ... MR.BOYES' PLAYGROUND
2820 PRINT" (B) ... A BOAT RACE
2830 [153]" (C) ... CHILDREN IN A RACE
2840 PRINT" (D) ... PLEASE SHOW ME THE STORY AGAIN
2850 [161]R$:[139]R$[179][177]"A"[175]R$[179][177]"B"[175]R$[179][177]"C"[175]R$[179][177]"D"[167]2850
2860 [139]R$[178]"A"[167][153]"DEF WAKE UP! ":[141]300:P[178]P[170]1:[137]2800
2870 [139]R$[178]"B"[167][153]"DEF YOU'RE BEING SILLY!":[141]300:P[178]P[170]1:[137]2800
2880 [139]R$[178]"D"[167][141]370:[141]1200:[137]2800
2890 [141]350
3000 [153]"LOAD SCORE BOARD WAIT":[141]391
3005 [139]P[178]0[167][153]"SYS EXCELLENT!"
3010 [139]P[178]0[167][141]500:[141]500:[141]393:[137]3045
3015 [139]P[178]1[167][153]"SYS YOU MADE JUST ONE BLOOPER.":[141]391
3020 [139]P[178]1[167][153]" GOOD WORK."
3025 [139]P[178]1[167][141]500:[141]393:[137]3045
3030 [153]"DEF YOU MADE"P"BLOOPERS.":[141]530:[141]530:[141]392
3035 [153]" YOU SHOULD REPEAT THIS STORY AND
3040 PRINT" TRY TO GET A BETTER SCORE.":GOSUB 393
3045 PRINT"[153] "
3050 PRINT"[159] YOU NOW HAVE A CHOICE:":GOSUB560
3055 PRINT" PRESS R [146] TO REPEAT THIS STORY
3060 [153]" PRESS M WAIT TO RETURN TO THE DISK MENU
3065 GETR$:IFR$<>"R"ANDR$<>"M"THEN 3065
3070 IFR$="R"THEN RESTORE:GOTO1000
3075 PRINT"[147] RETURNING TO THE DISK MENU
3080 [147]"MENU",8
3085 [138]
3090 [128]
4000 [143] WHC 92 05 25